﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace com.codeplex.eatoutadvocate.Web.Mvc.Models
{
    public class EatOutModel
    {

        public int Time { get; set; }                   //Only hour (hh) to calculate offset
        public int Mood { get; set; }
        public int MoodLevel { get; set; }              //E.g. How happy are you? 1-3
        public int Weather { get; set; }
        public int Temperature { get; set; }

        [Required(ErrorMessage = "{0} is required.")]
        [Display(Name = "Restaurant")]
        public string Restaurant { get; set; }

        [Required(ErrorMessage = "{0} is required to retrieve your weather and temperature.")]
        [Display(Name = "Zip Code")]
        public string ZipCode { get; set; }
    }

    

    #region enums

    public enum Mood
    {
        Happy = 1,
        Sad = 2,
        Neutral = 3,
        Drunk = 4
    }

    public enum Weather
    {
        Pleasant = 1,    // Clear, partly/mostly Cloudy, Overcast, Scattered clouds,
        Adverse = 2    // Everything else
    }

    public enum Temperature
    {
        Cold = 1,   //Less than 40 F
        Mild = 2,   //40 - 65 F
        Warm = 3,   //65 - 85 F
        Hot = 4     //Greater than 85 F
    }

    #endregion
}
